/*
    Project:        Home Power Control
    File:           HPCLogScreen.cpp
    Author:         christian@karunamusic.at
    Date:           12.2014
    Description:    Log to screen (stderr).
 */

#include <iostream>
#include "HPCLogScreen.h"

using namespace std;

HPCLogScreen::HPCLogScreen( TLogLevel lv ) : HPCLogDevice(lv)
{
}

HPCLogScreen::~HPCLogScreen()
{
}

void HPCLogScreen::OnLog( const HPCLogMessage& lm )
{
    if ( lm.LogLevel() <= LogLevel() )
        cerr << lm << endl;
}
